home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / networking / 351 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  3.6 KB

  1. Path: rkamiga1.apana.org.au!not-for-mail
  2. From: rudyk@rkamiga1.apana.org.au (Rudy Kohut)
  3. Newsgroups: comp.sys.amiga.networking
  4. Subject: Re: ppp0IPLocal
  5. Date: 10 Jan 1996 09:36:07 GMT
  6. Organization: Daemon Public Access Unix (03)563-8438
  7. Message-ID: <4d01a7$929@ramus.apana.org.au>
  8. References: <4cos37$c3u@tribune.usask.ca> <4cpamc$jgl@tribune.usask.ca> <kruse.53114568@america.com> <4crqlv$39d@tribune.usask.ca>
  9. NNTP-Posting-Host: dialup-03.apana.org.au
  10. X-Newsreader: TIN [AMIGA 1.3 950726BETA PL0]
  11.  
  12. Clark Nikolai (aa144@sfn.saskatoon.sk.ca) wrote:
  13.  
  14. :> Well I've modified my dial script and it gives a different type of log 
  15. :> file from PPPlog. Here is the dialscript:
  16. :> 
  17. :> ECHO OFF
  18. :> TIMEOUT 150000    ; Set maximum wait time (in ticks)
  19. :> REDIAL "BUSY"   ; Redial on busy signal
  20. :> DELAY 100
  21. :> SEND ""
  22. :> DELAY 50
  23. :> SEND "ATZ&D0"     ; Initialize the modem
  24. :> DELAY 20
  25. :> WAIT "K"        ; Wait for the OK
  26. :> SEND "ATDP955-1925" ; Dial
  27. :> DELAY 20
  28. :> WAIT "CT"       ; Wait for connect
  29. :> DELAY 50
  30. :> SEND ""         ; Send a CR-LF
  31. :> DELAY 20
  32. :> WAIT "ogin:"        ; Wait for Name:
  33. :> SEND "myuserid" ; Send your User ID
  34. :> DELAY 20
  35. :> WAIT "assword:"         ; Wait for Password:
  36. :> SEND "mypassword" ; Send your password
  37. :> WAIT "PPP Ready"
  38.  
  39. >>>SNIP<<<
  40.  
  41. :> Here is one of the scripts I'm trying:
  42. :> 
  43. :> AmiTCP:bin/online devs:networks/ppp.device 0
  44. :> AmiTCP:AmiTCP
  45. :> WaitForPort AMITCP
  46. :> ; Configure loop-back device
  47. :> AmiTCP:bin/ifconfig lo0 localhost
  48. :> ; Configure ppp0
  49. :> AmiTCP:bin/ifconfig ppp0 $ppp0IPLocal $ppp0IPRemote
  50. :> ; Add route to this host
  51. :> AmiTCP:bin/route add $ppp0IPLocal localhost
  52. :> ; Add route to the default gateway
  53. :> AmiTCP:bin/route add default $ppp0IPRemote
  54. :> SetEnv HOSTNAME `AmiTCP:bin/hostname`
  55. :> Assign >NIL: TCP: EXISTS
  56. :> IF WARN
  57. :>   Mount TCP: FROM AmiTCP:devs/inet-mountlist
  58. :> EndIF
  59. :> ; Start the internet `super server'
  60. :> Run <NIL: >NIL: AmiTCP:bin/inetd
  61. :> 
  62. :> So what happens is I execute this script, it then dials and opens a 
  63. :> shell, then "CONNECT" etc. 
  64. :> The server asks for the login: and the script gives it, same with 
  65. :> password. Everythings is fine up to then. Then the server sends out "PPP 
  66. :> Ready" and the packets. This is where it appears something goes wrong.
  67. :> Is there another command that goes at the end of the dial script that 
  68. :> tells the PPP.device to kick in? I don't know what else to think.
  69. :> Hope you can help.
  70.  
  71. Here is my ppp dialscript for comparison:
  72. ECHO ON
  73. TIMEOUT 6000
  74. REDIALDELAY 1000
  75. ABORT "NO CARRIER","NO ANSWER","NO DIALTONE"
  76. REDIAL "BUSY"
  77. SEND "ATZ1"
  78. WAIT "OK"
  79. SEND "ATDT(servertelnumber)"
  80. WAIT "CONNECT"
  81. WAIT " login: "
  82. SEND "my login"
  83. WAIT "assword:"
  84. SEND "mypassword"
  85.  
  86. That's it! After that, the server negotiates with PPP all the settings.
  87. Then the rest of the my startnet_ppp script is executed. Here it is for
  88. comparison (Note: I am using Amitcp4.0demo):
  89.  
  90. amitcp:bin/online devs:networks/ppp.device 0
  91. If WARN
  92.     Echo "Could not connect!"
  93.     Wait 3
  94.     skip END
  95. ENDIF
  96. AmiTCP:bin/umask 022
  97. AmiTCP:AmiTCP
  98. WaitForPort AMITCP
  99. ; Configure loop-back device
  100. AmiTCP:bin/ifconfig lo0 localhost
  101. AmiTCP:bin/ifconfig ppp0 $ppp0iplocal $ppp0ipremote
  102. ; Add route to this host
  103. AmiTCP:bin/route add $ppp0iplocal localhost
  104. ; Add route to the default gateway
  105. AmiTCP:bin/route add default $ppp0ipremote
  106. Assign TCP: Exists > NIL:
  107. IF Warn
  108.   Mount TCP: from AmiTCP:devs/Inet-Mount ;<<<<Note: NOT Inet-Mountlist>>>
  109. EndIf
  110. ; Start the internet `super server'
  111. run AmiTCP:bin/inetd
  112. run c:SMTPd
  113. Lab END
  114.  
  115. Cheers
  116. Rudy
  117. --------------------------------
  118. > Melbourne Victoria Australia <
  119. --------------------------------
  120. Alt. eMail [rudy.kohut@dpd.vic.gov.au]
  121.